module mux_16b_8_1   (InA,InB,InC,InD,InE,InF,InG,InH,S,Out);
    input [15:0]    InA,InB,InC,InD,InE,InF,InG,InH;
    input [2:0]     S;
    output [15:0]   Out;

    assign Out= S == 3'b000 ? InA :
                S == 3'b001 ? InB :
                S == 3'b010 ? InC :
                S == 3'b011 ? InD :
                S == 3'b100 ? InE :
                S == 3'b101 ? InF : 
                S == 3'b110 ? InG : InH;

endmodule
